/**
 * Created by Administrator on 2016/9/22.
 */

function show(x) {

    console.log(typeof(x));    // undefined
    console.log(typeof(10));   // number
    console.log(typeof('abc')); // string
    console.log(typeof(true));  // boolean

    console.log(typeof(function () { }));  //function

    console.log(typeof([1, 'a', true]));  //object
    console.log(typeof ({ a: 10, b: 20 }));  //object
    console.log(typeof (null));  //object
    console.log(typeof (new Number(10)));  //object
}
 // show();
var fn = function () { };
console.log(fn instanceof Object);
var fn = function () {
    alert(100);
};
fn.a = 10;
fn.b = function () {
    console.log(100)
};
fn.c = {
    name: "王福朋",
    year: 1988
};
var obj={}
console.log(obj.__proto__);
function Foo() {
    
}
var f1=new Foo();
f1.a1=10;
Foo.prototype.a=1000;
Foo.prototype.b=3444;
var item;
for (item in f1){
    console.log(item);
}
for (item in f1){
    if(f1.hasOwnProperty(item)){
        console.log(item);
    }
}

function f2(x) {
    console.log(x)
    console.log(arguments)
}
f2(4,2);